/**
 * @param {number[][]} grid
 * @return {number[]}
 */
var findColumnWidth = function (grid) {
	const length = grid[0].length
	const res = Array.from({ length }, () => 0)
	for (let i = 0; i < length; i++) {
		let max = (grid[0][i] + '').length
		for (let j = 1; j < grid.length; j++) {
			max = Math.max(max, (grid[j][i] + '').length)
		}
		res[i] = max
	}
	return res
}
const res = findColumnWidth([
	[-15, 1, 3],
	[15, 7, 12],
	[5, 6, -2],
])
console.log(res)
